home *** CD-ROM | disk | FTP | other *** search
-
-
-
- QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee((((3333qqqqtttt))))
-
-
-
- NNNNAAAAMMMMEEEE
- QDataSource - A QDataSource is an asynchronous producer of
- data
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <qasyncio.h>
-
- Inherits QAsyncIO.
-
- Inherited by QIODeviceSource.
-
- PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
- vvvviiiirrrrttttuuuuaaaallll iiiinnnntttt rrrreeeeaaaaddddyyyyTTTTooooSSSSeeeennnndddd (((())))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd sssseeeennnnddddTTTToooo (((( QQQQDDDDaaaattttaaaaSSSSiiiinnnnkkkk ****,,,, iiiinnnntttt ccccoooouuuunnnntttt ))))
- vvvvooooiiiidddd mmmmaaaayyyybbbbeeeeRRRReeeeaaaaddddyyyy (((())))
- vvvviiiirrrrttttuuuuaaaallll bbbboooooooollll rrrreeeewwwwiiiinnnnddddaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd eeeennnnaaaabbbblllleeeeRRRReeeewwwwiiiinnnndddd (((( bbbboooooooollll ))))
- vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd rrrreeeewwwwiiiinnnndddd (((())))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- A QDataSource is an asynchronous producer of data.
-
- A data source is an object which provides data from some
- source in an asynchronous manner. This means that at some
- time not determined by the data source, blocks of data will
- be taken from it for processing. The data source is able to
- limit the maximum size of such blocks which it is currently
- able to provide.
-
- See also: QAsyncIO, QDataSink and QDataPump.
-
- MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee::::::::eeeennnnaaaabbbblllleeeeRRRReeeewwwwiiiinnnndddd (((( bbbboooooooollll )))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- If this function is called with _o_n set to TRUE, and
- rewindable() is TRUE, then the data source must take
- measures to allow the rewind() function to subsequently
- operate as described. If rewindable() is FALSE, the function
- should call QDataSource::enableRewind(), which aborts with a
- fatal() error.
-
- For example, a network connection may choose to utilize a
- disk cache of input only if rewinding is enabled before the
- first buffer-full of data is discarded, returning FALSE in
- rewindable() if that first buffer is discarded.
-
- Reimplemented in QIODeviceSource.
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee::::::::mmmmaaaayyyybbbbeeeeRRRReeeeaaaaddddyyyy (((())))
- This should be called whenever readyToSend() might have
- become non-zero. It is merely calls QAsyncIO::ready() if
- readyToSend() is non-zero.
-
-
-
-
- Page 1 (printed 9/22/98)
-
-
-
-
-
-
- QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee((((3333qqqqtttt)))) TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888)))) QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee((((3333qqqqtttt))))
-
-
-
- iiiinnnntttt QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee::::::::rrrreeeeaaaaddddyyyyTTTTooooSSSSeeeennnndddd (((()))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- The data source should return a value indicating how much
- data it is ready to provide. This may be 0. If the data
- source knows it will never be able to provide any more data
- (until after a rewind()), it may return -1.
-
- Reimplemented in QIODeviceSource.
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee::::::::rrrreeeewwwwiiiinnnndddd (((()))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- This function rewinds the data source. This may only be
- called if enableRewind(TRUE) has been previously called.
-
- bbbboooooooollll QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee::::::::rrrreeeewwwwiiiinnnnddddaaaabbbblllleeee (((()))) ccccoooonnnnsssstttt [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- This function should return TRUE if the data source can be
- rewound.
-
- The default returns FALSE.
-
- Reimplemented in QIODeviceSource.
-
- vvvvooooiiiidddd QQQQDDDDaaaattttaaaaSSSSoooouuuurrrrcccceeee::::::::sssseeeennnnddddTTTToooo (((( QQQQDDDDaaaattttaaaaSSSSiiiinnnnkkkk ****,,,, iiiinnnntttt ccccoooouuuunnnntttt )))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
- This function is called to extract data from the source, by
- sending it to the given data sink. The count will be no more
- than the amount indicated by the most recent call to
- readyToSend(). The source must use all the provided data,
- and the sink will be prepared to accept at least this much
- data.
-
- Reimplemented in QIODeviceSource.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqddddaaaattttaaaassssoooouuuurrrrcccceeee....hhhhttttmmmmllll
-
- CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
- Copyright 1992-1997 Troll Tech AS. See the LICENSE file
- included in the distribution for a complete license
- statement.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Generated automatically from the source code.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 9/22/98)
-
-
-
-